package com.core.wanted;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

import com.example.wanted.R;


public class IntroductionActivity extends Activity {

    private OnClickListener m_click_listener = new OnClickListener() {
        public void onClick(View v) { 
//            Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse( "http://www.naver.com"  ));
//            startActivity(intent);
            
            Toast.makeText(getApplicationContext(), "Onclicked", Toast.LENGTH_LONG).show();
            
            Intent i = new Intent(getApplication(), AuthorizeActivity.class);
            startActivity(i);
            finish();
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_introduction);
        
        Button button = (Button) findViewById(R.id.btn_join);
        button.setOnClickListener(m_click_listener);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.introduction, menu);
        return true;
    }

}
